package common;

import gauss.ForkJoinFastGauss;

import java.io.File;

import median.ForkJoinFastMedian;


public class Launcher {

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {

		JFreeChartHeatmap window = new JFreeChartHeatmap();
		window.frame.setVisible(true);
		
		IMS_CSV_File imsFile = new IMS_CSV_File(new File("E:/_IPHEx CBF/ims_files/NI24_0909171332_ims.csv"));
		double[][] map = imsFile.getMap();
		map = ImageMethods.baselineCorrection(map);
		map = ImageMethods.substractSimilaritie(map);
		map = ForkJoinFastMedian.forkJoinFastMedian(map, 5);
		map = ForkJoinFastGauss.forkJoinFastGauss(map);
		
		window.showHeatmap(map, imsFile.getScaleK0Inv(),imsFile.getScaleRT());

	}
}
